const getters = {
  sidebar: state => state.app.sidebar,//取app模块属性
  device: state => state.app.device,
  token: state => state.user.token,
  userId: state => state.user.userInfo.userId,
  avatar: state => state.user.userInfo.staffPhoto,//头像
  name: state => state.user.userInfo.username,//用户名称
 
}
export default getters
